home *** CD-ROM | disk | FTP | other *** search
- Path: winternet.com!news
- From: johna@poliac.com (John R. Aldrin)
- Newsgroups: comp.lang.c++
- Subject: What is correct behavoir for inputting text files opened in binary mode with streams
- Date: Wed, 31 Jan 1996 15:21:54 GMT
- Organization: Poliac Research
- Message-ID: <310f8908.45414683@news.winternet.com>
- NNTP-Posting-Host: 204.246.91.132
- X-Newsreader: Forte Agent .99d/32.173
-
- Hi,
-
- I am using the Borland C++ compiler and I have noticed a difference in
- the way versions 4.5 and 4.52 process the cr/lf when inputing lines of
- text with a stream that has been opened in binary mode. In version
- 4.5.2 the cr\lf is stripped from the string when input, the cr\lf pair
- was not stripped in 4.5. Since this sort of information would never
- be documented by Borland and the C++ IOStreams book I have was not
- clear, I was wondering what the correct behavoir is. Maybe the C++
- standard has defined this behavoir and Borland changed.
-
- Thanx
-
- jra
-
-